/*#include <REGX52.H>


//int main()
{
	P2 = 0x55;
	while(1)
	{
		P2--;
	}
	return 0;
}*/

/*#include <REGX52.H>

void delat()
{
	unsigned char i,j,k;
	i = 4;
	j = 205;
	k = 187;
	/*while(k--)
	{
		while(i--)
		{
			while(j--);
		}
	}*//*
	do
	{
		do
		{
			while(--k);
		}while(--j);
	}while(--i);
}

/*int main()*/
/*{
	
	while(1)
	{
		P2 = 0xFE;
		delay();
		P2 = 0xFD;
		delay();
		P2 = 0xFB;
		delay();
		P2 = 0xF7;
		delay();
	}
}*/

/*#include <REGX52.H>


void delat()
{
	unsigned char i,j,k;
	i = 4;
	j = 205;
	k = 187;
	while(k--)
	{
		while(i--)
		{
			while(j--);
		}
	}
	do
	{
		do
		{
			while(--k);
		}while(--j);
	}while(--i);
}

int main()
{
	P2 = 0xFE;
	delat();
	P2 = 0xFD;
	delat();
	P2 = 0xFB;
	delat();
	P2 = 0xF7;
	delat();
	return 0;
}*/

/*#include <REGX52.H>

int main()
{
	P2 = 0xF7;
	int a = 0;
	while(a < 25000)
		a++;
	P2 = 0xFE;
	return 0;
}*/

/*#include <REGX52.H>
#include<intrins.h>

void Delay500ms()		//@11.0592MHz
{
	unsigned char i, j, k;

	_nop_();
	_nop_();
	i = 22;
	j = 3;
	k = 227;
	do
	{
		do
		{
			while (--k);
		} while (--j);
	} while (--i);
}


int main()
{
	while(1)
	{
		P2 = 0xFE;
		Delay500ms();
		P2 = 0xFD;
		Delay500ms();
		P2 = 0xFB;
		Delay500ms();
		P2 = 0xF7;
		Delay500ms();
	}
	return 0;
}*/


/*#include <REGX52.H>

int main()
{
	P1 = 0xFE;
	return 0;
}
*/
#include <REGX52.H>

/*int main()
{
	while(1)
	{
		if(P3_1 == 1)
			P2_0 = 0;
		else
			P2_0 = 1;
	}
	return 0;
}*/
/*
int main()
{
	int a = 0;
	while(1)
	{
		if(P3_1 == 0)
		{
			P2 = 0xFF;
			while(1)
			{
				if(P3_1 == 1)
				{
					a++;
					break;
				}
			}
		}
		if(a == 8)
			a = 0;
		if(a == 0)
		{
		P2_0 = 0; 
			P2_7 = 1;
		}
		else if(a == 1)
		{
		P2_1 = 0;
			P2_0 = 1;
		}
		else if(a == 2)
		{
		P2_2 = 0;
			P2_1 = 1;
		}
		else if(a == 3)
		{
		P2_3 = 0;
			P2_2 = 1;
		}
		else if(a == 4)
		{
		P2_4 = 0;
			P2_3 = 1;
		}
		else if(a == 5)
		{
			P2_5 = 0;
			P2_4 = 1;
		}
		else if(a == 6)
		{
		P2_6 = 0;
			P2_5 = 1;
		}
		else if(a == 7)
		{
		P2_7 = 0;
			P2_6 = 1;
		}
	}
	return 0;
}

*/
/*int main()
{
	P2_7 = 0;
	return 0;
}*/


int main()
{
	P0 = 0x7D;
	while(1);
}